<?php

namespace App\Http\Controllers\Api;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

use App\Common\GenerateCartoonizedImageAdvance;
use App\Common\GetAsyncJobResult;
use App\Common\StreamedResponse;
use App\Services\UserService;

class UserController extends Controller
{
    private $userService;
    public function __construct(Request $request,UserService $userServices)
    {
        parent::__construct($request);
        $this->userService = $userServices;
    }

    /**
     * @return void
     * @throws \EasyWeChat\Kernel\Exceptions\InvalidConfigException
     */
    public function xcxLogin()
    {
        $this->userService->xcxLogin($this->requestData->all());
    }

    /**
     * 个人中心
     * @return false|string
     */
    public function getUserInfo()
    {
        $this->userService->getUserInfo($this->requestData->all());
    }

    /**
     * @return false|string
     */
    public function editUser()
    {
        $this->userService->editUser($this->requestData->all());
    }
}
